package com.wzq.permission.client.service;

import java.util.List;

import com.wzq.permission.client.model.Pager;
import com.wzq.permission.client.model.admin.DataPermissionModel;
/**
 * 
 * @author Administrator
 *
 */

public interface DataPermissionService {
	
	void add(DataPermissionModel data);

	void update(DataPermissionModel data);

	void updateBySelective(DataPermissionModel data);

	void delete(Object id);

	int queryByCount(DataPermissionModel data);

	List<DataPermissionModel> queryList(DataPermissionModel data,Pager pager);

	DataPermissionModel queryById(Object id);
	
	void logicDelete(Long[] dataPermissionIds);
	
	/**
     * 判断数据权限名是否存在
     * @param model 数据权限对象
     * @return int 
     */
    int isExist(DataPermissionModel model);
}
